🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / testing / src / commonMain / kotlin / org / meshtastic / core / testing / FakeMeshService.kt
Displaying Raw • Download
core/testing/src/commonMain/kotlin/org/meshtastic/core/testing/FakeMeshService.kt 41414f832f938b655c97bc07509bc140ea16e2a3 (41414f83) Text, 1.52 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.testing
T8b949e/**
* A container for all mesh-related fakes to simplify test setup.
*
* Instead of manually instantiating and wiring multiple fakes, you can use [FakeMeshService] to get a consistent set of
* test doubles.
*/
Tff7b72class T56d364FakeMeshService Tb4b4b4{
Tff7b72val Te6edf3nodeRepository Tff7b72= Te6edf3FakeNodeRepositoryTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3serviceRepository Tff7b72= Te6edf3FakeServiceRepositoryTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3radioController Tff7b72= Te6edf3FakeRadioControllerTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3radioInterfaceService Tff7b72= Te6edf3FakeRadioInterfaceServiceTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3notifications Tff7b72= Te6edf3FakeMeshNotificationManagerTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3transport Tff7b72= Te6edf3FakeRadioTransportTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3logRepository Tff7b72= Te6edf3FakeMeshLogRepositoryTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3packetRepository Tff7b72= Te6edf3FakePacketRepositoryTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3contactRepository Tff7b72= Te6edf3FakeContactRepositoryTb4b4b4(Tb4b4b4)
Tff7b72val Te6edf3locationRepository Tff7b72= Te6edf3FakeLocationRepositoryTb4b4b4(Tb4b4b4)
T8b949e// Add more as they are implemented
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.03s